
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ADMIN PANEL | wisata Madiun</title>
<link rel="stylesheet" type="text/css" href="style.css" />

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="ddaccordion.js"></script>
<script type="text/javascript">
ddaccordion.init({
	headerclass: "submenuheader", //Shared CSS class name of headers group
	contentclass: "submenu", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["suffix", "<img src='images/plus.gif' class='statusicon' />", "<img src='images/minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})
</script>

<script src="jquery.jclock-1.2.0.js.txt" type="text/javascript"></script>
<script type="text/javascript" src="jconfirmaction.jquery.js"></script>
<script type="text/javascript">
	
	$(document).ready(function() {
		$('.ask').jConfirmAction();
	});
	
</script>
<script type="text/javascript">
$(function($) {
    $('.jclock').jclock();
});
</script>

<script language="javascript" type="text/javascript" src="niceforms.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="niceforms-default.css" />

</head>


<body>
<div id="page">

	<div id="header">
		<div class="logo"><h1><a href="index.php">ADMIN PANEL</a></h1></div>
		
		<div class="right_header"><a href="../logout.php" class="logout">Logout</a></div>
		<div class="jclock"></div>
		<div class="menu">
			<marquee behavior="alternate">. Welcome Admin .</marquee>
		</div>
    </div>
    
    <div id="content">
    
		<div class="center_content">  
			
			
			<div class="left_content">
			
				<div class="sidebar_search">
					<form>
						<input type="text" name="" class="search_input" value="search keyword" onblur="if(this.value=='')this.value='search';" onclick="if(this.value=='search')this.value='';" />
						<input type="image" class="search_submit" src="images/search.png" />
					</form>            
				</div>
		
				<div class="sidebarmenu">
				
					<a class="menuitem submenuheader" href="">Wisata</a>
					<div class="submenu">
						<ul>
							<li><a href="wisata.php">Data Wisata</a></li>
							<li><a href="wisata.php?lokasi=form_tambah_data">Tambah Wisata</a></li>
						</ul>
					</div>
						
					<a class="menuitem submenuheader" href="" >Kuliner</a>
					<div class="submenu">
						<ul>
							<li><a href="kuliner.php">Data Kuliner</a></li>
							<li><a href="kuliner.php?lokasi=form_tambah_data">Tambah Kuliner</a></li>
						</ul>
					</div>
						
					<a class="menuitem submenuheader" href="">Penginapan</a>
					<div class="submenu">
						<ul>
							<li><a href="inap.php">Data Penginapan</a></li>
							<li><a href="inap.php?lokasi=form_tambah_data">Tambah Penginapan</a></li>
						</ul>
					</div>
						
					<a class="menuitem submenuheader" href="">Berita</a>
					<div class="submenu">
						<ul>
							<li><a href="berita.php">Data Berita</a></li>
							<li><a href="berita.php?lokasi=form_tambah_data">Tambah Berita</a></li>
						</ul>
					</div>
					
					<a class="menuitem submenuheader" href="">Polling</a>
					<div class="submenu">
						<ul>
							<li><a href="polling.php">Data Polling</a></li>
							<li><a href="polling.php?lokasi=form_tambah_data">Tambah Polling</a></li>
						</ul>
					</div>
					
					<a class="menuitem submenuheader" href="">Comment</a>
					<div class="submenu">
						<ul>
							<li><a href="datacomment.php">Data Comment</a></li>
						</ul>
					</div>
					
					<a class="menuitem" href="about.php">User Reference</a>
					
						
				</div>
				
				<div class="photo">
                    <img src="images/frame.png" alt="" title="" border="0"  class="frame"/>
                    <img src="images/" alt="" title="" border="0" class="picture" />
                </div>
				
			</div>  
		
			<div class="right_content">
				<?php
					include "koneksi.php";
					$halaman="prosescomment.php";
					$tanggal=date("d-m-y");
					   
					switch($_GET[lokasi])
					{
						default:
						echo "
						<h2>Daftar Buku Tamu Website Pariwisata Madiun</h2> 
						
						<table border=0 id='rounded-corner'>
						<thead>
							<tr>
								<th width='30' class='rounded-company' scope='col'>Id_pesan</th>
								<th width='30' class='rounded-company' scope='col'>Nama</th>
								<th width='50' class='rounded' scope='col'>Email</th>
								<th width='155' class='rounded' scope='col'>Subject</th>
								<th width='155' class='rounded' scope='col'>Pesan</th>
								<th width='20' class='rounded-q4' scope='col'>Delete</th>
							</tr>
						</thead>
						<tfoot>
							<tr>
								<td colspan='6' class='rounded-foot-left'><em>Daftar Buku Tamu Website Pariwisata Madiun</em></td>
							</tr>
						</tfoot>";
						
						$tampil = mysql_query("SELECT * FROM tb_pesan ORDER BY id_pesan DESC");
						while($r=mysql_fetch_array($tampil))
						{
							echo "<center>
									<tr><td><font face = corbel color = '#b40000'size = +0>$r[id_pesan]</font></td>
									<td><font face = corbel color = '#b40000'size = +0>$r[nama]</font></td>
									<td><font face = corbel color = '#b40000'size = +0>$r[email]</font></td>
									<td><font face = corbel color = '#b40000'size = +0>$r[subject]</font></td>
									<td><font face = corbel color = '#b40000'size = +0>$r[pesan]</font></td>
									<td>
										<a href='$halaman?proses=delete_data&id=$r[id_pesan]' class='ask'><img src='images/trash.png' alt='' title='' border='0' /></a>
									</td>
									</tr>
								</center>";
						}
						echo"</table>";
						
						break;
					}
				?>

			</div><!-- end of right content-->
						
		</div>   <!--end of center content -->               
            
		<div class="clear"></div>
    </div> <!--end of main content-->
	<div class="clear"></div>
</div>
    
<div id="footer">
    <div class="left_footer">IN ADMIN PANEL</div>
    <div class="right_footer"></div>
    
</div>
</body>
</html>